﻿<%@ Page Language="C#" AutoEventWireup="True" 
    CodeBehind="DeleteNodeWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.DeleteNodeWindow" 
    MasterPageFile="..\MasterPages\MedianamikModalWindow.Master" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
<telerik:RadScriptBlock runat="server" ID="scriptBlock">
	<script type="text/javascript">
        //<![CDATA[
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function closeWindow(mustReload) {
            var arg = new Object();
            arg.mustReload = mustReload ? true : false;
            arg.nodeId = '<%= NodeId %>';
            var oWindow = GetRadWindow();
            oWindow.Close(arg);
        }
        //]]>            
	</script>
	</telerik:RadScriptBlock>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="MedianamikScriptManager" EnableHistory="true" EnablePageMethods="true" runat="server"  EnablePartialRendering="true" ScriptMode="Release" />
	<fieldset>
        <asp:PlaceHolder ID="mainPlaceHolder" runat="server">
            <p><asp:Literal ID="textLabel" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, ConfirmDeleteNodeInstanceText %>" /></p>
            <p><asp:DropDownList ID="deleteOptions" CssClass="SelectList" runat="server" Visible="false" /></p>
            <p><asp:Button ID="deleteNodeButton" runat="server" OnClick="DeleteNode" Text="<%$ Resources: Medianamik_ContentManagement, DeleteNodeButtonText %>" class="Btn SuspendLock" />&nbsp;&nbsp;<input type="button" class="Btn unlock" value="<%=Resources("Medianamik_Global", "Cancel") %>" onclick="closeWindow();" /></p>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="denyPlaceHolder" Visible="false" runat="server">
            <p><asp:Literal ID="denyMessage" runat="server" /></p>
        </asp:PlaceHolder>
    </fieldset>
</asp:Content>
